/**
 * Created by Administrator on 2017-01-02 0002.
 */
function Index(str, char) {
    for (var i = 0; i < str.length; i++) {
        if (str[i] === char) {
            alert("索引是:"+i);
            break;
        }
    }
}
